import React from 'react'

import Head from './children/Head'

import base from '@/api/baseUrl'

export default class extends React.Component {
  constructor(props) {
    super(props)
    const {BTNS} = base
    this.state = {
      btnList : [
        {id: 1, label: '首页', href: BTNS},
        {id: 2, label: '新手入门', href: BTNS + "getstart"},
        {id: 3, label: 'API', href: BTNS + "api"},
        {id: 4, label: '关于', href: BTNS + "about"},
        {id: 5, label: '注册', href: BTNS + "signup"},
        {id: 6, label: '登录', href: BTNS + "signin"},
      ]
    }
  }
  render() {
    const {btnList} = this.state
    return (
      <Head btnList={btnList} />
    )
  }
}